﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <!--#include virtual="include/Head.ascx"-->
    <script src="Assets/Js/cal_event.js" type="text/javascript"></script>
    <script>
        $(function () {
            _url = "cal_events.aspx";
            _html = "<iframe id=\"url_doctor\" scrolling=\"no\" onload=\"jQuery(this).height(jQuery(this).contents().height());\" style=\"width:100%;border:0;height:100%;\" name=\"url_doctor\" src=\"" + _url + "\"></iframe>";
            jQuery("#dialog-modal").html(_html);
            $("#dialog:ui-dialog").dialog("destroy");
            $("#dialog-modal").dialog({
                canMinimize: true,
                position: ['right', 'bottom'],
                minimize: true,
                //canMaximize:true,
                title: 'REMINDERS',
                dialogClass: 'fixed-position',
                //                height: "auto",
                //                modal: true,
                height: 280,
                width: 500,
                open: function () { $('#dialog-modal iframe').height($(this).height() - 50); $('#dialog-modal iframe').width($(this).width() - 20); },
                resize: function () { },
                resizeStop: function () {
                    $('iframe').show();
                    $('#dialog-modal iframe').height($(this).height() - 50);
                    $('#dialog-modal iframe').width($(this).width() - 50);
                }
            });

            $('#dialog-modal').dialog("open");
        });
    </script>
</head>
<body>
    <%if ((Session["logined_id"] == null) && (int.Parse(Session["logined_id"].ToString()) <= 0))
          Response.Redirect("login.aspx"); %>
    <div id="body-wrapper">
        <div id="header">
            <!--#include virtual="include/Top.ascx"-->
        </div>
        <div id="main-content1">
            <h2></h2>
            <div class="clear">
            </div>
            <div class="content-box" style="width: 100%;">
                <form id="frmEdit" runat="server" method="post">
                    <div class="content-box-header">
                        <div style="float: right; margin: 5px 5px 0px 0px;">
                            <asp:Button ID="btnSetCookie" runat="server" Text="Allow Computer Login" CssClass="button"
                                OnClick="btnSetCookie_Click" />
                            <asp:Button ID="btnClearCookie" runat="server" Text="Remove" CssClass="button" OnClick="btnClearCookie_Click" />
                        </div>
                    </div>
                    <div id="feature_container" class="grid_16" style="margin: 20px auto; width: 800px; border: 3px dotted darkcyan; height: 500px; padding: 20px;">
                        <asp:Label ID="lblDisplay" runat="server"></asp:Label>
                    </div>
                    <div class="clear">
                    </div>
                </form>
            </div>
            <div id="footer">
            </div>
        </div>
    </div>
</body>
</html>
